﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="photo.aspx.cs" Inherits="photo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphBody" Runat="Server">
    <!-- <asp:Label ID="test_truyen_bien" runat="server"  /> -->
    <link type="text/css" rel="stylesheet" href="javascript/update.css">
    <script type="text/javascript" src="javascript/jquery.js"></script>
    
    <%if (Page.User.Identity.IsAuthenticated)
      { %>
    <link rel="stylesheet" href="admin/colorbox.css" type="text/css" />
    <link rel="stylesheet" href="admin/StyleSheet.css" type="text/css" />
    <script type="text/javascript" src="admin/admin.js"></script>
    <script type="text/javascript" src="admin/jquery.colorbox.js"></script>
    <script type="text/javascript">
                $(document).ready(function () {
                	$("#uploadImage").colorbox({ width: "550px", inline: true, href: "#uploadImagePanel" });
                });

                function closeOverlay() {
                    $.colorbox.close();
                    return false;
                }
   </script>
   
   <div id="Div1" runat="server" style="visibility:hidden;height:1px">           
     <div id="uploadImagePanel" class="overlaypanel">
          <h2><%=Resources.labels.insertImage %></h2>
               <ul class="fl" style="margin:0;">
                 <li>
                    <asp:Label ID="lblFileUpload" CssClass="lbl" AssociatedControlID="txtUploadImage" runat="server" Text='<%$ Resources:labels, uploadImage %>' />
                    <asp:FileUpload runat="server" ID="txtUploadImage" Width="400" size="50" ValidationGroup="imageupload" />                  
                 </li>
                 <li style="margin:0;">
                     <asp:Button runat="server" ID="btnUploadImage" Text="<%$Resources:labels,upload %>"
                                ValidationGroup="imageupload" CssClass="btn primary" OnClientClick="colorboxDialogSubmitClicked('imageupload', 'uploadImagePanel');" /> <%=Resources.labels.or %> <a href="#" onclick="return closeOverlay();"><%=Resources.labels.cancel %></a>
                  </li>
                </ul>
       </div>
    </div>
    <a href="#" id="uploadImage" class="image"><%=Resources.labels.insertImage%></a>
    <%} %>
    
    <br />
    <div class="blocnews">
	<div class="hilinews" style="width:670px;">
	    <table cellspacing="0" cellpadding="0" width="100%">
		    <tr style="background: url('image/review_img_8.gif') repeat-x scroll 0% 0% transparent;">
			    <td align="left" width="1%"><img src="image/review_img_7.gif"></td>
			    <td></td>
			    <td align="right" width="1%"><img src="image/review_img_9.gif"></td>
		    </tr>
		    <tr align="center">
			    <td width="1%" style="background: url('image/review_img_4.gif') repeat-y scroll 0% 0% transparent;">
				    <img src="image/review_img_4.gif">
			    </td>
			    <td>
			        <br />
    				<div id="showhere"></div>	
    			    <br />								
			    </td>
			    <td width="1%" style="background: url('image/review_img_6.gif') repeat-y scroll 0% 0% transparent;">
				    <img src="image/review_img_6.gif">
			    </td>
		    </tr>
		    <tr style="background: url('image/review_img_2.gif') repeat-x scroll 0% 0% transparent;">
			    <td align="left" width="1%"><img src="image/review_img_1.gif"></td>
			    <td></td>
			    <td align="right" width="1%"><img src="image/review_img_3.gif"></td>
		    </tr>
	    </table>
	</div>
    </div>

   <div id="mynews" style="min-height:8px;">
    <% for (int i = 0; i < count; i++)
       {%>
        <div class="news_style">
            <div class="newsphoto">
                    <%=img[i] %>
            </div>
            <div class="head01">
                <%=name[i] %>
                <%if (Page.User.Identity.IsAuthenticated)
                  { %>
                &nbsp;&nbsp;<a href="photo.aspx?delete=<%=fullname[i] %>" style="font-size:14px;"><%=Resources.labels.deletePic%></a>
                <%} %>
            </div>
        </div>
    <% }%>
    </div>
  
    <div id="news_button" class="buttondiv">
	    <img align="absmiddle" id="news_prev" alt="prev" src="pics/prev.gif">
	    <img align="absmiddle" id="news_pause" alt="pause" src="pics/pause.gif">
	    <img align="absmiddle" id="news_next" alt="next" src="pics/next.gif">
    </div>    
<script type="text/javascript">
var newsoption1 = { firstname: "mynews", secondname: "showhere", thirdname:"news_display", fourthname:"news_button", newsspeed:'6000', imagedir:'pics/', mouseover: false }; $.init_news(newsoption1); 
</script>
</asp:Content>
